package com.ruoyi.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teacher.mapper.SxTeachersMapper;
import com.ruoyi.teacher.domain.SxTeachers;
import com.ruoyi.teacher.service.ISxTeachersService;

/**
 * 教师信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-07
 */
@Service
public class SxTeachersServiceImpl implements ISxTeachersService 
{
    @Autowired
    private SxTeachersMapper sxTeachersMapper;

    /**
     * 查询教师信息
     * 
     * @param teacherId 教师信息主键
     * @return 教师信息
     */
    @Override
    public SxTeachers selectSxTeachersByTeacherId(Long teacherId)
    {
        return sxTeachersMapper.selectSxTeachersByTeacherId(teacherId);
    }

    /**
     * 查询教师信息列表
     * 
     * @param sxTeachers 教师信息
     * @return 教师信息
     */
    @Override
    public List<SxTeachers> selectSxTeachersList(SxTeachers sxTeachers)
    {
        return sxTeachersMapper.selectSxTeachersList(sxTeachers);
    }

    /**
     * 新增教师信息
     * 
     * @param sxTeachers 教师信息
     * @return 结果
     */
    @Override
    public int insertSxTeachers(SxTeachers sxTeachers)
    {
        return sxTeachersMapper.insertSxTeachers(sxTeachers);
    }

    /**
     * 修改教师信息
     * 
     * @param sxTeachers 教师信息
     * @return 结果
     */
    @Override
    public int updateSxTeachers(SxTeachers sxTeachers)
    {
        return sxTeachersMapper.updateSxTeachers(sxTeachers);
    }

    /**
     * 批量删除教师信息
     * 
     * @param teacherIds 需要删除的教师信息主键
     * @return 结果
     */
    @Override
    public int deleteSxTeachersByTeacherIds(Long[] teacherIds)
    {
        return sxTeachersMapper.deleteSxTeachersByTeacherIds(teacherIds);
    }

    /**
     * 删除教师信息信息
     * 
     * @param teacherId 教师信息主键
     * @return 结果
     */
    @Override
    public int deleteSxTeachersByTeacherId(Long teacherId)
    {
        return sxTeachersMapper.deleteSxTeachersByTeacherId(teacherId);
    }
}
